var mongoose = require('mongoose');

const get = async function (parameter) {
    return await mongoose.model("order").find(parameter)
};

const update = async function (_id, parameter) {
    return await mongoose.model("order").update({ _id }, parameter)
}
const search = async function (parameter) {
    return await mongoose.model("order").find( parameter)
}
module.exports = { get,update,search }